﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace XNA_Game_Framework
{
	public class Image : Control
	{
		protected Texture2D image;

		public override Vector2 Size
		{
			get { return new Vector2(image.Width, image.Height); }
		}

		public Image(Control parent, string name, Vector2 position, Texture2D image)
			: base(name, parent, position)
		{
			this.image = image;
		}

		internal override void Draw(SpriteBatch spriteBatch)
		{
			spriteBatch.Draw(image, WindowPosition, Color.White);
		}
	}
}
